/**
 * 零基础学C语言
 * 
 * version: 1st
 * author: 明日科技
 * see: http://www.mingrisoft.com
 */

#include <stdio.h>
#include <string.h>

int main() {
    char user[20] = {"exit"};
    char ustr[20];
    while(strcmp(user, ustr) != 0) {
        printf("请输入字符串：\n");
        gets(ustr);
        puts(ustr);
    }

    return 0;
}

/*
output:

*/